package com.yq.design.memento;

/**
 * @ClassName Originator
 * @Description TODO
 * @Author yaoqiang
 * @Date 2021/8/31 16:37
 * @Version 1.0
 */
public class Originator {
    public String state;

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Memonto saveState(){
        return new Memonto(state);
    }

    public  void getStateFromMemontoList(Memonto m){
        state=m.getState();
    }

}
